package com.zrrd.gmall.cart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

//SpringBoot核心注解
@SpringBootApplication
//扫描指定包的注解
@ComponentScan({"com.zrrd.gmall"})
//开启fegin请求的支持
@EnableDiscoveryClient
//扫描指定包的Fegin相关注解
@EnableFeignClients(basePackages = "com.zrrd.gmall")
//开启异步任务的支持
@EnableAsync
public class ServiceCartApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceCartApplication.class,args);
    }
}
